<%@ page import="com.minxi.jsp.javabean.UserInfo" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024-06-18
  Time: 17:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
  UserInfo userInfo = (UserInfo) request.getSession().getAttribute("userInfo");
%>

<input type="text" name="userName" placeholder="请输入用户名" value="<%=userInfo.getUser_name()%>" readonly><br>
<input type="text" name="userPhone" placeholder="请输入手机号码" value="<%=userInfo.getUser_phone()%>" readonly><br>

<% if("男" == userInfo.getUser_gender()){%>
<input type="radio" name="userSex" value="1" checked disabled>男
<input type="radio" name="userSex" value="2" disabled>女<br>
<%}else if("女" == userInfo.getUser_gender()){%>
<input type="radio" name="userSex" value="1" disabled>男
<input type="radio" name="userSex" value="2" checked disabled>女<br>
<%}%>

</body>
</html>
